<template>
    <div class="box">
        <header class="header">
          <ul>
            <li @click="back"><i class="iconfont icon-jiantouarrowhead7"></i></li>
            <li><h5>优惠券</h5></li>
            <li></li>
          </ul>
        </header>
        <div class="content">
          <ul class="conpons">
            <li><p>优惠券</p></li>
            <li><p>优惠券</p></li>
            <li><p>优惠券</p></li>
            <li><p>优惠券</p></li>
          </ul>
        </div>
    </div>
</template>

<script>
export default {
  methods: {
    back () {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="scss" scoped>
@import '@/lib/reset.scss';
.header {
  @include rect(100%, 0.4rem);
  @include background-color(#DFDFDF);
  ul {
    @include rect (95%, 100%);
    // background:red;
    margin:0 auto;
    @include flexbox();
    @include justify-content(space-between);
    @include align-items();
    li {
      i{
        @include font-size(0.15rem);
        @include text-color(#101010);
      }
      h5 {
        @include font-size(0.15rem);
        @include text-color(#101010);
        @include font-weight(100);
      }
    }
  }
}

.conpons {
  @include rect(100%, 100%);
  li {
    @include rect(100%, 0.6rem);
    background:#eee;
    margin-top:0.2rem;
    p {
      height:0.6rem;
      line-height: 0.6rem;
      margin-left:0.2rem;
    }
  }
}
</style>
